<?php

namespace app\admin\validate;

use think\Validate;

class LinkValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'url' => 'require',
        'sort' => 'require',
        'status' => 'require',
    ];
    protected $message = [
        'name.require' => '请输入友链名称',
        'url.require' => '请输入友链URL',
        'sort.require' => '请输入排序',
        'status.require' => '请选择友链状态',
    ];
}